import request from '@/utils/request';

// 业务流量占比
export function queryFlowPie(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryFlowPie',
		method: 'post',
		data: data,
	});
}

// 会话量占比
export function querySessionPie(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/querySessionPie',
		method: 'post',
		data: data,
	});
}

// 告量占比
export function queryAlarmPie(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryAlarmPie',
		method: 'post',
		data: data,
	});
}

// 健康度
export function queryTopHealth(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopHealth',
		method: 'post',
		data: data,
	});
}

// 建链耗时
export function queryTopConnectTime(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopConnectTime',
		method: 'post',
		data: data,
	});
}

// 响应数
export function queryTopResponseCount(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopResponseCount',
		method: 'post',
		data: data,
	});
}

// 建链失败
export function queryTopConnectFailCount(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopConnectFailCount',
		method: 'post',
		data: data,
	});
}

// 响应耗时
export function queryTopResponseTime(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopResponseTime',
		method: 'post',
		data: data,
	});
}

// 零窗口
export function queryTopZero(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopZero',
		method: 'post',
		data: data,
	});
}

// 重置包
export function queryTopReset(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopReset',
		method: 'post',
		data: data,
	});
}

// 重传包
export function queryTopReTry(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopReTry',
		method: 'post',
		data: data,
	});
}
